<div class="content">
	<div class="sixteen columns container">
		<?php 
			if (has_post_thumbnail( get_the_ID()) )
			{	
				$img = wp_get_attachment_image_src(
					get_post_thumbnail_id(
						get_the_ID()
					),
					'large'
				);
				
				// Get the full image
				$storyImageStyle = sprintf('style="background-image:url(\'%s\');"',$img[0]);
			}
			else 
			{
				$storyImageStyle = 'style="height:1px;"';
			}
			
			// Simplified layout?
			octoms('session')->start();
			$simplified = @(bool)(isset($_SESSION) && isset($_SESSION['__flash__']['simplified']));
		?>
		<div class="single-image" <?php print $storyImageStyle;?>></div>
		
		<div class="single-divider"><a href="<?php octoms('template',OMS_L)->page_category_url();?>" class="<?php octoms('template',OMS_L)->page_category_class();?>"></a></div>
		
		<div class="<?php print (!$simplified?'twelve':'sixteen');?> columns">
			<?php the_post();?>
			
			<?php the_content();?>
			
			<?php $fb = octoms('settings',OMS_L)->get('facebook'); if (isset($fb['appId']) && !empty($fb['appId'])):?>
			<div class="comments">
				<?php octoms('template',OMS_L)->widget('facebook', 'comments', array ( 'number' => '20', 'width' => '0', 'theme' => 'light'));?>
			</div>
			<?php endif;?>
		</div>
		<?php if (!$simplified):?>
		<div class="four columns alpha">
			<?php dynamic_sidebar('page');?>
		</div>
		<?php endif;?>
	</div>
</div>